#!/usr/bin/perl

use warnings;
use strict;

open (SAMPLE, "sample.file");

my $i = 1;
foreach (<SAMPLE>) {
    s/CA/California/;
    print;
}

close SAMPLE;
